* {
  padding: 0px;
  margin: 0px;
}

html, body {
  height: 100%;
  width: 100%;
  background-image: linear-gradient(120deg, #487eb0, #ffffbbcc);
}

/* 大容器 */
.contaniner {
  position: absolute;
  height: 350px;
  width: 600px;
  background-color: rgba(255, 255, 255, .9);
  /* 水平+垂直 居中 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(17, 39, 59, .9);
  border: 1px solid rgba(17, 39, 59, 1);
  overflow: hidden;
  box-sizing: border-box;
  /* 设置默认透明度为0 */
  opacity: 0;
  /* 设置动画过渡效果 */
  transition: 1s;
}

/* 容器 显示 */
.container-show {
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* 鼠标悬浮时，样式显现 */
.contaniner:hover .title {
  font-size: 25px;
}
.contaniner:hover input {
  /* 输入框 向上移动百分之30的位置 */
  transform: translate(0, -30%);
}
.contaniner:hover .btn {
  height: 30px;
  width: 90px;
  transform: translate(0, -30%);
  font-size: 12px;
}
.contaniner:hover .change-box {
    height: 200px;
}
.contaniner:hover .change-btn {
  display: block;
}

/* 标题 */
.title {
  position: relative;
  margin-top: 10px;
  height: 40px;
  width: 100%;
  display: flex;
  /* flex布局水平、垂直居中 */
  justify-content: center;
  align-items: center;
  /* uppercase定义仅有大写字母 */
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 500;
  /* 设置字符间距 */
  letter-spacing: 3px;
  transition: .4s;
}

/* input输入框样式 */
.input {
  position: relative;
  width: 400px;
  height: 45px;
  /* 上下外边距各40像素 水平居中 */
  margin: 40px auto;
}

/* input原始样式重写 */
input {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding-left: 15px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, .4);
  border-radius: 45px;
  transition: .4s;
}

/* 按钮样式 */
.btn {
  height: 50px;
  width: 160px;
  position: relative;
  margin: -10px auto;
  background-color: rgba(0, 0, 0, .1);
  border-radius: 20px;
  color: rgba(255, 255, 255, .4);
  display: flex;  
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: .4s;
}

/* 去注册 */
.change-box {
  position: absolute;
  height: 0px;
  width: 100%;
  clip-path: polygon(100% 50%, 50% 100%, 100% 100%);
  bottom: 0px;
  transition: .4s;
}

.change-btn {
  position: absolute;
  bottom: 30px;
  right: 40px;
  font-size: 20px;
  display: none;
  font-weight: 500;
}

/* 按钮被悬浮时样式 */
.change-btn:hover {
  text-shadow: 0px 0px 3px rgba(200, 200, 200, .8);
  cursor: pointer;
}

/* 登录模块样式 */
.login-box {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(17, 39, 59, .8);
  transition: .4s;
  /* 允许你改变被转换元素的位置 */
  transform-origin: 0 100%;
  transform: rotate(90deg);
  z-index: 1;
}
.login-box .title {
  color: white;
  text-shadow: 0px 0px 7px rgba(255, 255, 255, .9);
}
/* 输入框获得焦点时样式 */
.login-box input:focus {
  box-shadow: 0px 0px 10px rgba(1, 1, 1, .8);
}
.login-box input {
  caret-color: white;
  color: rgba(255, 255, 255, .8);
}
.login-btn:hover {
  color: white;
  background-color: #57606f;
  box-shadow: rgba(0, 0, 0, 0.1);
  text-shadow: 0px 0px 2px rgba(0, 0, 0, .1);
}
/* 去注册 */
.login-change {
  background-color: rgba(255, 255, 255, .8);
}


/* 注册模块样式 */
.sign-box {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, .8);
  transform-origin: 0 100%;
  transition: .4s;
  z-index: 1;
}
.sign-box .title {
  text-shadow: 0 0 10px rgba(200, 200, 200, .8);
  font-weight: 500;
}
.sign-change {
  background-color: rgba(17, 39, 59, .8);
}
.toLogin {
  color: white;
}

.sign-box input {
  box-shadow: 0 0 3px black;
}

.sign-box .btn {
  color: #1e90ff;
  background-color: rgba(200, 200, 200, .1);
  transition: .5s;
}

.sign-box .btn:hover {
  color: white;
  background-color: #1e90ff;
}

/* 登录注册切换效果 */
.animate_login {
  transform: rotate(-90deg);
}

.animate_sign {
  transform: rotate(0deg);
}

/* Mac三色阿牛样式 */
.apple-btn {
  position: absolute;
  height: 15px;
  width: 65px;
  top: 3px;
}
.apple-btn li {
  /* 去除li标签小圆点 */
  list-style: none;
  position: relative;
  height: 15px;
  width: 15px;
  border-radius: 15px;
  opacity: 0;
}
.login-apple li {
  left: 5px;
  float: left;
}
.sign-apple li {
  right: 5px;
  float: right;
}

.sign-apple {
  right: 5px;
}

li:nth-child(2) {
  margin: 0px 4px;
}

.red-btn {
  background-color: red;
  transition: .3s;
  transform: translate(0, -50%);
}

.yellow-btn {
  background-color: orange;
  transition: .6s;
  transform: translate(0, -50%);
}

.green-btn {
  background-color: rgba(15, 136, 15);
  transition: .9s;
  transform: translate(0, -50%);
}

/* 边框阴影做边框颜色 */
.redColor {
  box-shadow: 0px 0px 5px red !important;
}
.blackColor {
  box-shadow: 0 0 3px black !important;
}
.greenColor {
  box-shadow: 0px 0px 5px green !important;
}

.contaniner:hover .red-btn {
  opacity: 1;
  transform: translate(0, 0);
}
.contaniner:hover .yellow-btn {
  opacity: 1;
  transform: translate(0, 0);
}
.contaniner:hover .green-btn {
  opacity: 1;
  transform: translate(0, 0);
}